package com.ubigroup.server.servlet;

import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.core.Request;

import org.codehaus.jettison.json.JSONObject;

import com.ubigroup.server.model.*;
import com.ubigroup.server.util.Constants;


@Path("/")
public class UbigroupService {
	
	/**
	private Contato contato = new Contato(1, "Lucas", "lucas@email.com", "3222-4222", "Porto Alegre");
	private Perfil perfil = new Perfil(contato, null, null, null, null, null);
	private Contexto contexto = new Contexto(); 
	**/
	  
    // The @Context annotation allows us to have certain contextual objects
    // injected into this class.
    // UriInfo object allows us to get URI information (no kidding).
    @Context
    UriInfo uriInfo;
 
    // Another "injected" object. This allows us to use the information that's
    // part of any incoming request.
    // We could, for example, get header information, or the requestor's address.
    @Context
    Request request;
    
    // Basic "is the service running" test
    @GET
    @Produces(MediaType.TEXT_PLAIN)
    public String respondAsReady() {
        return "Ubigroup esta rodando!";
    }

}